<template>
    <div>
        <video ref="videoPlayer" class="video-js"></video>
    </div>
</template>
<script>
import videojs from 'video.js'
export default {
    name:'videoPlayer',
    props:{
        options:{
            type:Object,
            default(){
                return{

                }
            }
        }
    },
    data(){
        return{
            player:null
        }
    },
    mounted(){
        this.player=videojs(this.$refs.videoPlayer,this.options,function onPlayerReady(){
            console.log('onPlayerReady',this)
        })
    }
}
</script>

